package com.gdyzy.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_gdms_user")
public class User {
    @TableField(value = "userid")
    private int userId;
    @TableField(value = "token")
    private String token;
    @TableField(value = "phone")
    private String phone;
    @TableField(value = "Roleid")
    private int roleId;
    @TableField(value = "Realname")
    private String realName;
    @TableField(value = "Birthday")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birthday;
    @TableField(value = "Status")
    private boolean status;
    @TableField(value = "Place")
    private String place;
}
